﻿

<fieldset>
   <legend>Adverts</legend> 
   
       <div class="display-label">Adverts</div>
        <ul>
            @foreach (Project.Database.Advert advert in ViewBag.Adverts)
            { 
                <li>Name: @advert.Name</li>
                <li>URL: @advert.URL</li>
                <li>Brand: @advert.Advertiser.BrandName</li>
                <li><img src= "@Url.Content(advert.URL)" alt="Advert Image" width="200" height="100" /> </li>

            }
        </ul>
        @Html.ActionLink("Add an advert", "AddAdvert", "Advert")
</fieldset>